<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>信息化运行情况</title>
    <!-- Bootstrap -->
    <link href="framework/bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet">
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="framework/jquery/jquery-1.11.3.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="framework/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    <!--custom-->
    <link href="css/index.css" rel="stylesheet">

    <script src="framework/Highmaps-5.0.12/code/highcharts.js"></script>
    <script src="framework/Highmaps-5.0.12/code/themes/dark-unica.js"></script>

    <!--marquee-->
    <link href="css/marquee.css" rel="stylesheet">
    <script src="framework/marquee/marquee.js"></script>
    <!--websoket-->
    <script src="framework/websocket/socket-common.js"></script>
</head>
<body>

<div class="container-fluid">
    <!--header-->
    <div class="row padder-v-lg">
        <div class="col-md-9">
            <h1 class="header-title">成都千嘉客户服务感知管理系统<small>CHENGDU QIANJIA TECHNOLOGY CO.,LTD</small></h1>
        </div>
        <div class="col-md-1"></div>
        <div class="col-md-2">
            <a href="/callcenter-data.html" class="back"></a>
        </div>
    </div>
    <!--content-->
    <div class="row">
        <div class="col-md-3">
            <div class="row">
                <div class="col-md-12">
                    <div class="part">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="wrapper-spe">
                                    <span class="content">坐席呼入量-近六月走势</span>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="divide-line"></div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="wrapper-sm">
                                    <div id="ld" class="highchar-content-lg"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-9">
            <div class="row">
                <div class="col-md-12">
                    <div class="part">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="wrapper-spe">
                                    <span class="content">坐席呼入量-当月走势</span>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="divide-line"></div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="wrapper-sm">
                                    <div id="ld_day" class="highchar-content-lg"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>

<script type="text/javascript">
    $(function () {
        initLd();
    })

    function initLd() {
        $.post("/qjzt/call", {}, function (resp) {
            if (resp.attributes) {
                var map = resp.attributes;

                var categories = map.categories;
                var columnData = map.columnData;
                var splineData = map.splineData;

                var categoriesDay = map.categoriesDay;
                var columnDataDay = map.columnDataDay;
                var splineDataDay = map.splineDataDay;

                $('#ld').highcharts({
                    chart: {
                        type: 'column',
                        style: {
                            fontSize: "15px"
                        }
                    },
                    legend: {
                        enabled: false
                    },
                    title: {
                        text: null
                    },
                    xAxis: {
                        categories: categories,
                        crosshair: true,
                        labels: {
                            style: {
                                fontSize: "15px"
                            }
                        }
                    },
                    yAxis: {
                        labels: {
                            style: {
                                fontSize: "15px"
                            }
                        },
                        min: 0,
                        title: {
                            text: '呼入量',
                            rotation: 0,
                            y: -20,
                            offset: 20
                        }
                    },
                    series: [{
                        color: '#fc4041',
                        name: '呼入量',
                        data: columnData
                    },{
                        color: '#fc4041',
                        name: '呼入量',
                        data: splineData,
                        yAxis: 0,
                        type: 'spline',
                        lineWidth: 6
                    }]
                });

                $('#ld_day').highcharts({
                    chart: {
                        type: 'column',
                        style: {
                            fontSize: "15px"
                        }
                    },
                    legend: {
                        enabled: false
                    },
                    title: {
                        text: null
                    },
                    xAxis: {
                        categories: categoriesDay,
                        crosshair: true,
                        labels: {
                            style: {
                                fontSize: "15px"
                            }
                        }
                    },
                    yAxis: {
                        labels: {
                            style: {
                                fontSize: "15px"
                            }
                        },
                        min: 0,
                        title: {
                            text: '呼入量',
                            rotation: 0,
                            y: -20,
                            offset: 20
                        }
                    },
                    series: [{
                        color: '#f38b08',
                        name: '呼入量',
                        data: columnDataDay
                    },{
                        color: '#f38b08',
                        name: '呼入量',
                        data: splineDataDay,
                        yAxis: 0,
                        type: 'spline',
                        lineWidth: 6
                    }]
                });

            }
        });
    }

</script>
</html>